const data = require("./src/mock/index")
const bodyParser = require("body-parser")

module.exports = {
    devServer:{
        before(app){
            app.use(bodyParser.json())
            app.get("/api/list",(req,res)=>{
                res.send({
                    code:200,
                    data:data.list
                })
            })
        }
    }
}